package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_AssembleError", catalog="Id")
public class TccAssembleError extends BaseEntity<TccAssembleError> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="AssembleItemId", nameJava="assembleItemId", typeDataBase="bigint")
	private Long assembleItemId;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="HandleTime", nameJava="handleTime", typeDataBase="datetime")
	private Date handleTime;
	@YsField(nameDataBase="HandleStatus", nameJava="handleStatus", typeDataBase="tinyint")
	private Integer handleStatus;
	@YsField(nameDataBase="InStorageStatus", nameJava="inStorageStatus", typeDataBase="tinyint")
	private Integer inStorageStatus;
	@YsField(nameDataBase="SubAssembleLostNum", nameJava="subAssembleLostNum", typeDataBase="int")
	private Integer subAssembleLostNum;
	@YsField(nameDataBase="EstimatedArrivalTime", nameJava="estimatedArrivalTime", typeDataBase="char")
	private String estimatedArrivalTime;
	@YsField(nameDataBase="LogisticsMode", nameJava="logisticsMode", typeDataBase="varchar")
	private String logisticsMode;
	@YsField(nameDataBase="TrackingNumber", nameJava="trackingNumber", typeDataBase="varchar")
	private String trackingNumber;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccAssembleError setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TccAssembleError setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Long getAssembleItemId() {
		return assembleItemId;
	}
	public TccAssembleError setAssembleItemId(Long assembleItemId) {
		this.assembleItemId = assembleItemId;
		return this;
	}
	public Date getHandleTime() {
		return handleTime;
	}
	public TccAssembleError setHandleTime(Date handleTime) {
		this.handleTime = handleTime;
		return this;
	}
	public Integer getHandleStatus() {
		return handleStatus;
	}
	public TccAssembleError setHandleStatus(Integer handleStatus) {
		this.handleStatus = handleStatus;
		return this;
	}
	public Integer getInStorageStatus() {
		return inStorageStatus;
	}
	public TccAssembleError setInStorageStatus(Integer inStorageStatus) {
		this.inStorageStatus = inStorageStatus;
		return this;
	}
	public Integer getSubAssembleLostNum() {
		return subAssembleLostNum;
	}
	public TccAssembleError setSubAssembleLostNum(Integer subAssembleLostNum) {
		this.subAssembleLostNum = subAssembleLostNum;
		return this;
	}
	public String getEstimatedArrivalTime() {
		return estimatedArrivalTime;
	}
	public TccAssembleError setEstimatedArrivalTime(String estimatedArrivalTime) {
		this.estimatedArrivalTime = estimatedArrivalTime;
		return this;
	}
	public String getLogisticsMode() {
		return logisticsMode;
	}
	public TccAssembleError setLogisticsMode(String logisticsMode) {
		this.logisticsMode = logisticsMode;
		return this;
	}
	public String getTrackingNumber() {
		return trackingNumber;
	}
	public TccAssembleError setTrackingNumber(String trackingNumber) {
		this.trackingNumber = trackingNumber;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccAssembleError setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccAssembleError setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccAssembleError setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccAssembleError tccAssembleError(
		String bid,
		Long assembleItemId,
		Date handleTime,
		Integer handleStatus,
		Integer inStorageStatus,
		Integer subAssembleLostNum,
		String estimatedArrivalTime,
		String logisticsMode,
		String trackingNumber,
		Integer status
			) {
		TccAssembleError entity = new TccAssembleError();
		entity.setBid(bid);
		entity.setAssembleItemId(assembleItemId);
		entity.setHandleTime(handleTime);
		entity.setHandleStatus(handleStatus);
		entity.setInStorageStatus(inStorageStatus);
		entity.setSubAssembleLostNum(subAssembleLostNum);
		entity.setEstimatedArrivalTime(estimatedArrivalTime);
		entity.setLogisticsMode(logisticsMode);
		entity.setTrackingNumber(trackingNumber);
		entity.setStatus(status);
		return entity;
	}
}